class Ticket:
    def __init__(self,child = False,weekend = False):
        self.fee = 40
        if child:
            self.discount = 0.5
        else:
            self.discount = 1
        if weekend:
            self.inc = 1.2
        else:
            sele.inc = 1
    def calprice(self,num):
        return self.fee*self.discount*self.inc*num

daren = Ticket(False,False)
daren1 = Ticket(True,False)
print(daren.
